;(function(win) {
    console.log(1111);
    var h;
    var psWidth = 750;
    var dpr = win.navigator.appVersion.match(/iphone/gi) ? win.devicePixelRatio : 1;
    var scale = 1 / dpr;
    var docEl = document.documentElement;
    var metaEl = document.createElement('meta');
    function setUnitA() {
        win.rem = docEl.getBoundingClientRect().width / 7.5;
        docEl.style.fontSize = win.rem + 'px';
    }
    var phoneWidth = parseInt(window.screen.width);
    var bw = window.innerWidth || document.body.clientWidth;
    var bh = window.innerHeight || document.body.clientHeight;
    var radio = bh / bw;
    var phoneScale = phoneWidth / psWidth;
    var ua = navigator.userAgent;
    if (/Android (\d+\.\d+)/.test(ua)) {
        var version = parseFloat(RegExp.$1);
        if (version > 2.3) {
            document.write('<meta name="viewport" content="width=' + psWidth + ', minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
        } else {
            document.write('<meta name="viewport" content="width=' + psWidth + ', target-densitydpi=device-dpi">');
        }
    } else {
        document.write('<meta name="viewport" content="width=' + psWidth + ', initial-scale=1.0, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi, user-scalable=no">');
    }
    setUnitA();
})(window);